package com.administration.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.core.entity.BaseEntity;

/**
 * 
 * @author KarimSherif
 */
@Entity
@Table(name = "categories")
public class Category extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 2818464779230637531L;

	@Id
	@Column(name = "recid", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long recid;
	@Column(name = "name", length = 50)
	private String name;
	@Column(name = "description", length = 500)
	private String description;

	public Category() {
	}

	// \\###############################################################################################################

	@Override
	public String toString() {
		return "Category{" + "recid=" + recid + "name="
				+ name + "description=" + description + '}';
	}

	public Category(Long recid, String name, String description) {
		this.recid = recid;
		this.name = name;
		this.description = description;
	}

	// \\###############################################################################################################
	public Long getRecid() {
		return recid;
	}

	public void setRecid(Long recid) {
		this.recid = recid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
